﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DadayunApi.Model
{
    /// <summary>
    /// 用于报表查询时指向原始表单实例
    /// 在查询报表时，返回的数据为{'results':['RowNum':'1','F0':...,'DataObjs':[...]}
    /// 此类用于接收DataObjs
    /// </summary>
    public class ReportDataObject
    {
        public List<FormInstance> FormInstances { get; set; }
        public List<WfInstance> WfInstances { get; set; }
    }
    public class FormInstance
    {
        public string TplId { get; set; }
        public string TplName { get; set; }
        public ETemplateTypes TplType { get; set; }
        public string InstanceId { get; set; }
        public string Title { get; set; }
        public bool IsValid { get; set; }
        public bool IsBlock { get; set; }
        public RoleAction RoleAction { get; set; }
        public List<FormInstance> SubFormInstances { get; set; }
    }
    public class WfInstance
    {
        //TODO:尚未碰到含有此信息的案例，还不清楚如何构成
    }
}
